#pragma once

#include <iostream>
#include <string>
#include <ctime>

const int INFO=1;
const int WARNING=2;
const int ERROR=3;
const int FATAL=4;

#define LOG(level,message) Log(#level,message,__FILE__,__LINE__)

void Log(std::string level,std::string message,std::string file_name,int row)
{
  std::cout<<"["<<level<<"]"<<"["<<time(nullptr)<<"]"<<"["<<message<<"]"<<"["<<file_name<<"]"<<"["<<row<<"]"<<std::endl;
}
